// 代码块 importM
import 'package:flutter/material.dart';

import './myFont.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: const Text("Flutter app"),
        ),
        body: const MyHomePage(),
      ),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return ListView(padding: const EdgeInsets.all(10), children: <Widget>[
      Container(
        height: 44,
        padding: const EdgeInsets.fromLTRB(0, 10, 0, 0),
        child: const Text(
          "我是一个标题",
          textAlign: TextAlign.center,
          style: TextStyle(fontSize: 22),
        ),
      ),
      Image.network(
          "https://tse3-mm.cn.bing.net/th/id/OIP-C.FYx55PIoNajL-lEV5UhFlAHaNK?rs=1&pid=ImgDetMain"),
      Container(
        height: 44,
        padding: const EdgeInsets.fromLTRB(0, 10, 0, 0),
        child: const Text(
          "我是一个标题",
          textAlign: TextAlign.center,
          style: TextStyle(fontSize: 22),
        ),
      ),
      Image.network(
          "https://tse3-mm.cn.bing.net/th/id/OIP-C.FYx55PIoNajL-lEV5UhFlAHaNK?rs=1&pid=ImgDetMain"),
      Image.network(
          "https://tse3-mm.cn.bing.net/th/id/OIP-C.FYx55PIoNajL-lEV5UhFlAHaNK?rs=1&pid=ImgDetMain"),
      Image.network(
          "https://tse3-mm.cn.bing.net/th/id/OIP-C.FYx55PIoNajL-lEV5UhFlAHaNK?rs=1&pid=ImgDetMain"),
    ]);
  }
}
